package com.webdiy.qq.action;

import com.sys.plat.web.core.ActionContext;
import com.sys.tool.FileTool;
import com.webdiy.qq.form.DataCollectionForm;
import com.webdiy.qq.iface.DataCollectionService;

/**
 * Created by IntelliJ IDEA.
 * User: mabo
 * Date: 2009-10-20
 * Time: 14:54:00
 * To change this template use File | Settings | File Templates.
 */
public class DataCollectionAction extends BaseQqAction {

    private DataCollectionService getService() {
        return (DataCollectionService) getService("DataCollectionServiceImpl");
    }

    /**
     * 设置数据
     *
     * @return
     */
    public String writeDate() {
        DataCollectionForm form = (DataCollectionForm) ActionContext.getForm();
        DataCollectionService service = getService();

        FileTool ft = new FileTool("D:\\项目\\QQ达人\\朝阳");

        /*for (String path : ft.getFileNames()) {
            service.insertQqCode(FileTool.getFileBody(path, "GBK"));
        } */

        service.insertQqOtherInfo();
        return null;
    }


}
